package com.googlecode.cswish.struts.spring;

import java.lang.annotation.Annotation;

import com.googlecode.cswish.util.ClassUtil;

/** 
 * A structure to store property name and property type
 * 
 * @author Jerry.feng Date: 23/09/2008
 */
public class NameType {
	public String name;
	// see com.googlecode.cswish.asm.Type.getDescriptor
	public String type;
	public String genericType;
	public Annotation[] annotations;
	public boolean disableSetter;
	
	public boolean isPrimitive() {
		return ClassUtil.isPrimitive(type);
	}
}